<!DOCTYPE html>
<div id="container" style="overflow: hidden; height: 10px">
  <div style="display: flex">
    Passes if two lines of text<br>
    are visible.
  </div>
</div>
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<script>
runAfterLayoutAndPaint(function() {
  container.style.height = '100px';
}, true);
</script>
